/**
 * 修改密码
 */
var Password = function() {
	
	return {
		update : function() {
			$('#add-form').form('submit', {
				onSubmit: function(){
		            return $(this).form('validate');
		        },
		        success: function(result){
		        	alert(result);
		        	$.messager.alert('Warning', result);
		        	$('#add-dialog').dialog('close');
		        }
			});
		}
	}
}();

$(function() {
	$('#add-dialog').dialog('open');
});